package com.ruoyi.experiment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.experiment.mapper.NetworkMapper;
import com.ruoyi.experiment.domain.Network;
import com.ruoyi.experiment.service.INetworkService;

/**
 * 网络Service业务层处理
 * 
 * @author 邓鑫
 * @date 2023-07-29
 */
@Service
public class NetworkServiceImpl implements INetworkService 
{
    @Autowired
    private NetworkMapper networkMapper;

    /**
     * 查询网络
     * 
     * @param networkId 网络主键
     * @return 网络
     */
    @Override
    public Network selectNetworkByNetworkId(Long networkId)
    {
        return networkMapper.selectNetworkByNetworkId(networkId);
    }

    /**
     * 查询网络列表
     * 
     * @param network 网络
     * @return 网络
     */
    @Override
    public List<Network> selectNetworkList(Network network)
    {
        return networkMapper.selectNetworkList(network);
    }

    /**
     * 新增网络
     * 
     * @param network 网络
     * @return 结果
     */
    @Override
    public int insertNetwork(Network network)
    {
        return networkMapper.insertNetwork(network);
    }

    /**
     * 修改网络
     * 
     * @param network 网络
     * @return 结果
     */
    @Override
    public int updateNetwork(Network network)
    {
        return networkMapper.updateNetwork(network);
    }

    /**
     * 批量删除网络
     * 
     * @param networkIds 需要删除的网络主键
     * @return 结果
     */
    @Override
    public int deleteNetworkByNetworkIds(Long[] networkIds)
    {
        return networkMapper.deleteNetworkByNetworkIds(networkIds);
    }

    /**
     * 删除网络信息
     * 
     * @param networkId 网络主键
     * @return 结果
     */
    @Override
    public int deleteNetworkByNetworkId(Long networkId)
    {
        return networkMapper.deleteNetworkByNetworkId(networkId);
    }
}
